﻿@model CustomerBackInStockSubscriptionsModel
@using Nop.Web;
@using Nop.Web.Extensions;
@using Nop.Web.Framework;
@using Nop.Web.Models.Customer;
@using MvcContrib.UI.Grid;
@{
    Layout = "~/Views/Shared/_Root.cshtml";

    Html.AddTitleParts(T("PageTitle.BackInStockSubscriptions").Text);
}
<div class="account-page">
    <div class="page-title">
        <h1>@T("Account.BackInStockSubscriptions")</h1>
    </div>
    <div class="clear">
    </div>
    <div class="body">
        <div class="backinstock-subscriptions-box">
            @if (Model.Subscriptions.Count > 0)
            {
                <div>
                    @T("Account.BackInStockSubscriptions.Description")
                </div>
                <ul data-role="listview" data-inset="true" data-filter="false">
                    @foreach (var biss in Model.Subscriptions)
                    {
                        <li>
                            <div>
                                <div>
                                    @Html.RouteLink(biss.ProductName, "Product", new { productId = biss.ProductId, SeName = biss.SeName })
                                </div>
                                <div class="buttons">
                                    <a href="@Url.RouteUrl("DeleteBackInStockSubscription", new { subscriptionId = @biss.Id })" data-role="button">@T("Common.Delete")</a>
                                </div>
                            </div>
                        </li>
                    }
                </ul>
                    if (Model.PagerModel.TotalPages > 1)
                    {
                <div class="bissgridpagerstyle">
                    @Html.Pager(Model.PagerModel)
                </div>
                    }
            }
            else
            {
                @T("Account.BackInStockSubscriptions.NoSubscriptions")
            }
        </div>
    </div>
</div>
